package com.jiaai.web.zfp.system;

import com.alibaba.dubbo.config.annotation.Reference;
import com.jiaai.exception.ServerException;
import com.jiaai.system.api.ISystemConfigApi;
import com.jiaai.util.RestResultGenerator;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * class_name:ZBSystemConfigController
 * describe:TODO
 * create_user:张昉平
 * create_date:2017/12/20
 * create_date:17:19
 */
@RestController
@RequestMapping("/api/v1/app/system")
public class APPSystemConfigController {

    @Reference
    private ISystemConfigApi iSystemConfigApi;

    @GetMapping("/one")
    public Object getAll()throws ServerException {
        return  RestResultGenerator.genSuccessResult(iSystemConfigApi.getSystemConfig());
    }

}
